package ai.zixing.filter;

import ai.zixing.OrderContext;
import ai.zixing.OrderHandleIntercept;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(4)
@Component
public class RepeatOrderHandleInterceptService implements OrderHandleIntercept {
//    @Override
//    public int sort() {
//        //执行顺序为 1
//        return 1;
//    }

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("通过seqId,检查客户是否重复下单");
        return context;
    }
}
